package com.yby6.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yby6.common.core.BaseEntity;

/**
 * 附件对象 sys_attachment
 *
 * @author yangbuyi
 * @date 2022-04-17
 */
public class SysAttachment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 文Id
     */
    private Long id;

    /**
     * 标题
     */
    private String title;

    /**
     * 附件名称
     */
    private String name;

    /**
     * 附件地址
     */
    private String url;

    /**
     * 展示地址
     */
    private String showUrl;

    /**
     * 0 有效 1 无效
     */
    private Integer del;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setShowUrl(String showUrl) {
        this.showUrl = showUrl;
    }

    public String getShowUrl() {
        return showUrl;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public Integer getDel() {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("name", getName())
                .append("url", getUrl())
                .append("showUrl", getShowUrl())
                .append("createTime", getCreateTime())
                .append("del", getDel())
                .toString();
    }
}
